package com.ruoyi.warning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.warning.domain.entity.Area;
import com.ruoyi.warning.domain.vo.AreaVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author chenhc
 * @since 2025-02-25
 */
public interface AreaMapper extends BaseMapper<Area> {

    List<AreaVO> getAreaList();
    @Select("select max(level) from warning_area where del_flag = 0")
    int getMaxLevel();
    @Delete("delete from warning_area where del_flag = 0")
    void removeAll();
}
